<center>
<h1>TRICKY TREAT</h1>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<br/><br/>
[[Start]]<br/>
[[Credits]]<br/>
<br/><small><small>By Jeremy A. Robinson</small></small>
<br/><small>For the <i>Tricky Text Jam</i></small>
</center>
<%
s.counter = 0;
s.winstate = false;
s.candy = false;
s.choco = false;
s.lolli = false;
s.gummy = false;
s.cash = false;
s.yell1 = false;
s.yell2 = false;
s.apple = false;
s.carrot = false;
%>
<center>
<h2>Trickytown</h2>
<img src="tomhead.png"></img> <img src="rickyhead.png"></img>
</br><br/>
<small>
<b>Tom:</b> Hi! My name is Tom, and this is Ricky. <i>Welcome to Trickytown!</i><br/>
<b>Ricky:</b> Hey! Tonight we are on a quest to collect highly coveted treats. You should join us!<br/>
<b>Tom:</b> Yeah, that would be super awesome! Check out the loot we are going after...<br/>
</small><br/>
[[Check out the loot|Start2]]
</center>
<h2>Credits and Referencing</h2>
Development by Jeremy A. Robinson as an entry in the <i>Tricky Text Jam</i>.
<br/>
<small><br/>
The following were helpful for learning and/or reference for certain coding aspects:</br>
>- <a href="https://twinery.org/cookbook/terms/terms_variables.html">Twine Cookbook: Variables</a> on Twinery.org.<br/>
>- <a href="https://retentionscience.zendesk.com/hc/en-us/articles/115003025814-How-To-Build-HTML-for-Conditional-Statements">How To Build HTML for Conditional Statements</a> by RS Team of Retention Science.<br/>
>- <a href="https://www.youtube.com/watch?v=JjRoHAO6nAQ">Twine 2.2: Learning Twine: Story JavaScript</a> by Dan Cox on YouTube.<br/>
>- <a href="https://davidwalsh.name/css-custom-cursor">CSS Custom Cursors.</a>David Walsh. Sep 16, 2014.<br/>
>- <a href="https://www.w3schools.com/">Documentation and Examples on w3schools.com.</a><br/>
>
</small>
[[Return|Home]]
<br/>
<small><small>Copyright 2020 Jeremy A. Robinson</small></small>
<center>
<h2>Select a house</h2>
<img src="redhouse.png"></img> <img src="greenhouse.png"></img> <img src="greenhouse.png"></img> <img src="bluehouse.png"></img> <img src="redhouse.png"></img><br/>
[[171]] [[175]] [[179]] [[183]] [[187]]
<br/>
<img src="road.png"></img></br>
<img src="greenhouse.png"></img> <img src="bluehouse.png"></img> <img src="redhouse.png"></img> <img src="redhouse.png"></img> <img src="bluehouse.png"></img>
<br/> [[170]] [[174]] [[178]] [[182]] [[186]]
</center>
</div>
<br/>
<br/>
<br/>
<center>
<h2>The Loot</h2>
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *<br/>
<img src="candy.png"></img>
<img src="chocolate.png"></img>
<img src="lolli.png"></img>
<img src="gummy.png"></img>
<img src="cash.png"></img><br/>
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
<br/>
<small>
<b>Tom:</b> So we are looking for a piece of candy, a chocolate bar, a lolipop, and some gummy worms.<br/>
<b>Ricky:</b> Oh, and some cash.<br/>
<b>Tom:</b> This is going to be awesome! Let's go!<br/>
</small>
<br/>
[[Go tricky treating|Street]]
<center>
<h2>House 171</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.yell1==true) %>
<b>Tom:</b> I feel like we shouldn't knock this door. Let's do it anyway.
<% %>
[[Knock on the door|171_trickytreat]]
</center><center>
<h2>House 171</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairwoman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|171_answer]]
</center><center>
<h2>House 171</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairwoman.png"></img> <img src="door.png"></img>
<b>Woman:</b> GO AWAY!!!<br/>
<% if (s.yell1==true) %>
<b>Tom:</b> Oh, yeah. That is why I didn't think we should come here...<br/>
<% %>
<small>[[Check your stash|CheckStash]]</small>
<%
s.yell1=true;
%>
</center>
<center>
<h2>The Stash</h2>
<%
if (s.counter==5) {
s.winstate=true
}
%>
<% if (s.counter==0) %>
You don't have anything yet
<% if (s.candy==true) %>
<img src="candy.png"></img>
<% if (s.choco==true) %>
<img src="chocolate.png"></img>
<% if (s.lolli==true) %>
<img src="lolli.png"></img>
<% if (s.gummy==true) %>
<img src="gummy.png"></img>
<% if (s.cash==true) %>
<img src="cash.png"></img>
<% if (s.winstate==true) %>
<small>[[You got them all!!|Win Screen]]</small>
<% else if (s.winstate==false) %>
<small>[[Return to the street|Street]]</small>
<% %>
</center><center>
<h2>House 170</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.lolli==true) %>
<b>Ricky:</b> Let's not go back here. They already gave us a lollipop.
<small>[[Check your stash|CheckStash]]</small>
<% else %>
[[Knock on the door|170_trickytreat]]
</center><center>
<h2>House 175</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.apple==true) %>
<b>Ricky:</b> She already tried to give us an apple. Let's go to another house.
<small>[[Check your stash|CheckStash]]</small>
<% else %>
[[Knock on the door|175_trickytreat]]
</center><center>
<h2>House 179</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.candy==true) %>
<b>Ricky:</b> I think this is the house that gave us a piece of candy. Let's go to another house.<br/>
<small>[[Check your stash|CheckStash]]</small>
<% else %>
[[Knock on the door|179_trickytreat]]
</center><center>
<h2>House 183</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.cash==true) %>
<b>Ricky:</b> This was the house where that guy gave us some cash! we better not annoy him if we want cash again next year.<br/>
<small>[[Check your stash|CheckStash]]</small>
<% else %>
[[Knock on the door|183_trickytreat]]
</center><center>
<h2>House 187</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.carrot==true) %>
<b>Ricky:</b> I'm not actually allergic. Also I don't want a carrot. Let's go somewhere else.
<small>[[Check your stash|CheckStash]]</small>
<% else %>
[[Knock on the door|187_trickytreat]]
</center><center>
<h2>House 174</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.choco==true) %>
<b>Tom:</b> Hmmm...I think they already gave us something. Let's find another house.
<small>[[Check your stash|CheckStash]]</small>
<% else %>
[[Knock on the door|174_trickytreat]]
</center><center>
<h2>House 178</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.gummy==true) %>
<b>Tom:</b> I don't think they will give us anything else. Let's get out of here.
<small>[[Check your stash|CheckStash]]</small>
<% else %>
[[Knock on the door|178_trickytreat]]
</center><center>
<h2>House 182</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<% if (s.yell2==true) %>
<b>Ricky:</b> Let's see if they will yell at us again...<br/>
<% %>
[[Knock on the door|182_trickytreat]]
</center><center>
<h2>House 186</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
[[Knock on the door|186_trickytreat]]
</center><center>
<h2>House 170</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|170_answer]]
</center><center>
<h2>House 174</h2>
<% if (s.gummy==false) %>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
There is no answer.
<small>[[Check your stash|CheckStash]]</small>
<% else %>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|174_answer]]
</center><center>
<h2>House 170</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairwoman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|175_answer]]
</center><center>
<h2>House 178</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairwoman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|178_answer]]
</center><center>
<h2>House 174</h2>
<% if (s.cash==false) %>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
There is no answer.
<small>[[Check your stash|CheckStash]]</small>
<% else %>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairwoman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|179_answer]]
</center><center>
<h2>House 182</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|182_answer]]
</center><center>
<h2>House 170</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|183_answer]]
</center><center>
<h2>House 186</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="door.png"></img>
<b>Ricky:</b> Hmmm... guess nobody is home.
<small>[[Check your stash|CheckStash]]</small>
</center><center>
<h2>House 187</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairman.png"></img> <img src="door.png"></img>
[[Say <b><i>tricky treat!<i></b>|187_answer]]
</center><center>
<h2>House 170</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairman.png"></img> <img src="door.png"></img>
<b>Man:</b> Tricky treat! Haha. I remember when I was younger, I was one of the best tricky treaters out there. Anyway, enough about me, I do have a little something you might be interested in...
<small>[[Wait with anticipation|170_give]]</small>
</center><center>
<h2>House 174</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairman.png"></img> <img src="door.png"></img>
<b>Man:</b> You're a little old for tricky treating aren't you. Not that I care about that or anything. I got something for sure I think you might like...
<small>[[Wait with anticipation|174_give]]</small>
</center><center>
<h2>House 175</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairwoman.png"></img> <img src="door.png"></img>
<b>Woman:</b> Hello! I never get visitors. I'm so excited! I have got the perfect thing for you. Just wait a moment while I go get it...
<small>[[Wait with anticipation|175_give]]</small>
</center><center>
<h2>House 178</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairwoman.png"></img> <img src="door.png"></img>
<b>Woman:</b> Oh, what a happy surprise! The only thing that could make your costumes better, was if you actually had costumes!!! Let me see what I have for you...
<small>[[Wait with anticipation|178_give]]</small>
</center><center>
<h2>House 179</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairwoman.png"></img> <img src="door.png"></img>
<b>Woman:</b> Ahh...to be young again! Let me go get you something. Love the costumes by the way.
<small>[[Wait with anticipation|179_give]]</small>
</center><center>
<h2>House 182</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairman.png"></img> <img src="door.png"></img>
<b>Man:</b> GO AWAY!!!
<% if (s.yell2==true) %>
<b>Tom:</b> Yep, they yelled again...<br/>
<% %>
<small>[[Check your stash|CheckStash]]</small>
<%
s.yell2=true;
%>
</center><center>
<h2>House 183</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairman.png"></img> <img src="door.png"></img>
<b>Man:</b> I don't have any candy but I do have some of the green stuff. You know, brocolli! Just kidding, let me go get it for you...
<small>[[Wait with anticipation|183_give]]</small>
</center><center>
<h2>House 187</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairman.png"></img> <img src="door.png"></img>
<b>Man:</b> You are in luck! I have something wonderful, beautiful, and delightful to give you!
<small>[[Wait with anticipation|187_give]]</small>
</center><center>
<h2>House 171</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairwoman.png"></img> <img src="door.png"></img>
<b>Woman:</b> Here's some gummy worms!<br/>
<img src="gummy.png"></img><br/>
<%
s.gummy=true;
s.counter+=1;
%>
<small>[[Check your stash|CheckStash]]</small>
</center><center>
<h2>House 174</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairman.png"></img> <img src="door.png"></img>
<b>Man:</b> I remembered I have a stash of 20 year old chocolate bars in the basement. Here you go!!<br/><br/>
<img src="chocolate.png"></img><br/>
<%
s.choco=true;
s.counter+=1;
%>
<small>[[Check your stash|CheckStash]]</small>
</center><center>
<h2>House 187</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairman.png"></img> <img src="door.png"></img>
<b>Man:</b> I have had a great harvest this year, here is one of my amazing carrots!<br/><br/>
<img src="carrot.png"></img><br/>
<small>[[Actually...|187_reject]]</small>
</center><center>
<h2>House 187</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="redhairman.png"></img> <img src="door.png"></img>
<b>Tom and Ricky:</b> Oh thanks so much, but we are actually carrot intollerant. Thanks, anyway!<br/><br/>
<img src="carrot.png"></img><br/>
<small>[[Check your stash|CheckStash]]</small>
<%
s.carrot=true;
%>
</center><center>
<h2>House 187</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="rehairman.png"></img> <img src="door.png"></img>
<b>Man:</b> I have had a great harvest this year, here is one of my amazing carrots!<br/><br/>
<img src="carrot.png"></img><br/>
<small>[[Check your stash|CheckStash]]</small>
</center><center>
<h2>House 170</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairman.png"></img> <img src="door.png"></img>
<b>Man:</b> A lollipop!<br/><br/>
<img src="lolli.png"></img><br/>
<%
s.lolli=true;
s.counter+=1;
%>
<small>[[Check your stash|CheckStash]]</small>
</center><center>
<h2>House 183</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairman.png"></img> <img src="door.png"></img>
<b>Man:</b> Check out this cash! Don't spend it all in one place!<br/>
<img src="cash.png"></img><br/>
<%
s.cash=true;
s.counter+=1;
%>
<small>[[Check your stash|CheckStash]]</small>
</center><center>
<h2>House 175</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairwoman.png"></img> <img src="door.png"></img>
<b>Man:</b> A nice shiney apple!<br/><br/>
<img src="apple.png"></img><br/>
<small>[[Actually...|175_reject]]</small>
</center><center>
<h2>House 175</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="orangehairwoman.png"></img> <img src="door.png"></img>
<b>Tom and Ricky:</b> Oh, um...our mothers told us to never accept apples from strangers. See you...<br/><br/>
<img src="apple.png"></img><br/>
<small>[[Check your stash|CheckStash]]</small>
<%
s.apple=true;
%>
</center><center>
<h2>House 171</h2>
<img src="char1.png"></img> <img src="char2.png"></img> <img src="blackhairwoman.png"></img> <img src="door.png"></img>
<b>Woman:</b> The finest candy on the block!<br/>
<img src="candy.png"></img><br/>
<%
s.candy=true;
s.counter+=1;
%>
<small>[[Check your stash|CheckStash]]</small>
</center><center>
<h2>Mission Accomplished!</h2>
<img src="rickyhappy.png"></img> <img src="tomhappy.png"></img>
<br/>
<b>Tom:</b> Thanks for tricky treating with us! We totally plundered the neighborhood!<br/>
<b>Ricky:</b> Yeah! We totally got all of the loot!<br/>
<br/>
<%
s.counter = 0;
s.winstate = false;
s.candy = false;
s.choco = false;
s.lolli = false;
s.gummy = false;
s.cash = false;
s.yell1 = false;
s.yell2 = false;
%>
[[Return home|Home]]
</center>